package com.hubei.car.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hubei.car.entity.CarClassify;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 一二级分类
* luokangtao 2019/08/30
*/
@Mapper
@Repository
public interface CarClassifyMapper extends BaseMapper<CarClassify> {
    /**
     * 添加->排序操作
     * @param carClassify
     * @return
     */
    Integer addAllSortOne(@Param("cm") CarClassify carClassify);

    /**
     * 查询当前是否有等于sort的值
     * @param carClassify
     * @return
     */
    Integer selectByOne(@Param("cm")CarClassify carClassify);


    Integer updateAllSortOne(@Param("cm")CarClassify carClassify);
}